package com.feidee.bigdata.bloomfilterserv.util;

import com.feidee.bigdata.bloomfilterserv.constant.Constant;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class ToolUtils {

	public static String getCurrentDay() {
		Date dt = new Date();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return sdf.format(dt);
	}

	public static String getUuid() {
		return Constant.UUID_IP_PREFIX + UUID.randomUUID().toString().replace("-", "");
	}

}
